<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

<h:head></h:head> 
<body> 
	<h:form>  
	    <p:panel header="ALUNOS">  
	        <h:panelGrid columns="2" cellpadding="4">  
	            <h:outputText value="Nome: " />  
	            <p:inputText value="#{alunosMB.alunos.nome}" />
	              
	            <h:outputText value="Data de nascimento: " />  
				<p:calendar value="#{alunosMB.alunos.dtNascimento}" showButtonPanel="true" pattern="dd/MM/yyyy"/>

	            <h:outputText value="Endereço: " />  
	            <p:inputText value="#{alunosMB.alunos.endereco}" />

				<p:commandButton value="Gravar" action="#{alunosMB.gravarAluno}" onclick="notificacao.show()" />  
	            <p:commandButton value="Limpar" type="reset" />
	            
	            <p:notificationBar position="top" effect="slide" widgetVar="notificacao" styleClass="top">  
				    <h:outputText value="Cadastro efetuado com sucesso!" style="color:#FFCC00;font-size:36px;" />  
				</p:notificationBar>  
	        </h:panelGrid>  
	    </p:panel>
    </h:form>
</body> 
</html>
